package id.co.rho.scoring.cid.client.command.impl;

import id.co.rho.scoring.cid.client.command.CommandResult;
import id.co.rho.scoring.cid.shared.model.NamedCriteriaModel;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: User3
 * Date: 31/07/11
 * Time: 16:17
 *
 * @author : Frizky
 * @email : frizkey@gmail.com
 */
public class String64ToObjectResult implements CommandResult {
    private NamedCriteriaModel model;
    private List<NamedCriteriaModel> models;
    private Serializable periodMap;

    private boolean isNameExist;

    public String64ToObjectResult() {
    }

    public String64ToObjectResult(List<NamedCriteriaModel> models) {
        this.models = models;
    }

    public String64ToObjectResult(NamedCriteriaModel model) {
        this.model = model;
    }

    public NamedCriteriaModel getModel() {
        return model;
    }

    public void setModel(NamedCriteriaModel model) {
        this.model = model;
    }

    public List<NamedCriteriaModel> getModels() {
        return models;
    }

    public void setModels(List<NamedCriteriaModel> models) {
        this.models = models;
    }

    public Serializable getPeriodMap() {
        return periodMap;
    }

    public void setPeriodMap(Serializable periodMap) {
        this.periodMap = periodMap;
    }

    public boolean isNameExist() {
        return isNameExist;
    }

    public void setNameExist(boolean nameExist) {
        isNameExist = nameExist;
    }
}
